﻿using System.Runtime.Serialization;
using CID.Domain.Infrastructure;

namespace CID.Execution.Support.Information
{
    [DataContract]
    public class PackageTypeInfo
    {
        internal PackageTypeInfo() { }

        public PackageTypeInfo(IPackageType packageType)
        {
            Id = packageType.Id;
            Name = packageType.Name;

        }

        [DataMember]
        public int Id { get; set; }

        [DataMember]
        public string Name { get; set; }

        internal PackageTypeInfo Clone()
        {
            return new PackageTypeInfo() { Id = Id, Name = Name };
        }
    }
}
